package com.cyy.singleton_pattern;


public class LazyDemo {
    public static void main(String[] args) {
        //创建Aa对象
        LazyModeOne Aa = new LazyModeOne();
        //创建Bb对象
        LazyModeOne Bb = new LazyModeOne();

        Aa.setName("小明");
        System.out.println(Aa.getName());
        System.out.println(Bb.getName());
    }

}
